<?
// BASIC SETTINGS
	date_default_timezone_set('Europe/Copenhagen');//See http://php.net/manual/en/timezones.php

	$_ENV['URLs']['Domaine'] = $_SERVER['HTTP_HOST'];//Not sure if this will work on live server, or only on localhost
	$_ENV['URLs']['MainDir'] = 'btwebsystem'.DIRECTORY_SEPARATOR;//If entire system 'live' in a subdirectory. Should otherwise be = '';

	$_ENV['SiteName'] = 'Borgertinget2 | T';//UTF8-characters
	$_ENV['SiteAuthor'] = 'Borgertinget 2013-'.date('Y');
	$_ENV['SiteGenerator'] = 'SagaNet by Ole Sauffaus (www.sauffaus.dk)';
	$_ENV['SiteEmail'] = 'info.borgertinget@borgertinget.org';


// LANGUAGE
	define('_LANG','da');

	$_ENV['SiteKeywords']['da'] =
		'direkte demokrati, demokrati, e-demokrati, politik, direkte';

	$_ENV['SiteDescription']['da'] =
		'Borgertinget vil investere i e-demokrati så Danmark, over en årrække, kan indføre direkte folkestyre uden politikere.';




// COOKIE-LAW COMPLIANCE
	// 0 = None: Always use cookies if possible. Never display any notice.
	// 1 = Soft: Every page includes a hidden notice on cookie-use + opt-out-link.
	// 2 = Medium: First page displays notice. Subsequent pages include hidden notice/opt-out-link.
	// 3 = Hard: First page IS the notice. Users MUST decide. Subsequent pages include hidden notice/opt-out-link.
	define('_CookieComply',1);//(0-3) Level of compliance
		//How long to remember the users choice, before asking again?
		define('_CookieChoiceKeep',90);////(1-9999 days, or 0 for current session only)

// SESSION-DURATION
	// Low = Nice for security, High = Nice for user-experience & bots
	define('_SESSMAX',5);//(1-999) Hours before re-authorization is demanded.

// SESSION-PING
	// Continious connection checks
	// Low = Nice for user-experience, High = Nice for your server
	// If you expect many concurrent users (15+), you need to raise this value
	// If you expect few concurrent users (1-8), you can lower this value
	define('_PING',500);//(1-25) Seconds between automatic ajax-requests



// PRIMARILY FOR ADMINS and DEVELOPERS
	define('_LOG',0);//(0=None, 1=Basic, 2=Verbose) -- Keep a log of server-activities, to analyze potential problems.
	define('_DEBUG',1);//(1=Yes, 0=No) -- For developers. Should always be '0' when not developing.

	// INTERNAL ENCRYPTION KEYS
		// Chose whatever you want, but NEVER EVER keep the defaults!
		// PS:	Changing these later will reset the entire system.
		// User-database, statistics, sessions etc. are WIPED clean!
		define('_CRYPT1', 'Replace•This·123¿≈}*Completely' );//(12-40 utf-8 characters)
		define('_CRYPT2', 'Substitute®This∞321¢‰˜Entirely' );//(12-40 utf-8 characters)




/*** SECURITY (don't touch) ***/
	//define('_SAFETY','/_Core/index.php');// FILE TO SET AT TOP FOR SAFETY ON EACH INCLUSION

	defined('_INCL')||(header('HTTP/1.1 403 Forbidden')&die('403.14 - Access denied.'));
	if(_DEBUG) {
		error_reporting(-1);ini_set('display_errors',1);
	} else {
		error_reporting(0);ini_set('display_errors',0);
	}

	chdir($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.$_ENV['URLs']['MainDir']);

	require_once('Session/Sess.Filter.php');
	require_once('Session/Sess.Functions.php');
	require_once('Session/Sess.Base.php');
/******************************/
?>
